//
//  MineTableViewCell.m
//  XingRun
//
//  Created by 赵颜彬 on 17/1/13.
//  Copyright © 2017年 赵颜彬. All rights reserved.
//

#import "MineTableViewCell.h"

@implementation MineTableViewCell

//初始化
-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor = [UIColor whiteColor];
        self.contentView.backgroundColor = [UIColor whiteColor];
        //image
        self.imgView = [[UILabel alloc] init];
        [self.contentView addSubview:_imgView];
        //name
        self.name = [[UILabel alloc] init];
        _name.font = [UIFont fontWithName:@"Helvetica" size:14];
        _name.textColor = [CGLTool hexStringToColor:@"#a6a6a6"];
        _name.textAlignment = NSTextAlignmentCenter;
        [self.contentView addSubview:_name];
        
        
    }
    return self;
}
//布局方法
-(void)applyLayoutAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes
{
    
    _imgView.frame = CGRectMake(12, 12, 30, 30);
    _name.frame = CGRectMake(12, 45, 40, 40);
}


@end
